home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: memory allocation using malloc and free
- Date: 27 Feb 96 16:27:19 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.825438439@rscernix>
- References: <4gagll$5rc@bertrand.ccs.carleton.ca> <4gbqd7$1em@inet-nntp-gw-1.us.oracle.com> <4gd8ngINNp5i@keats.ugrad.cs.ubc.ca> <danpop.824952492@rscernix> <4gqja2INN8vr@keats.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: hpl3sn04.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
-
- >By the way, it would have been good to show the other "following limits".
-
- OK, here they are:
-
- 2.2.4.1 Translation limits
-
- The implementation shall be able to translate and execute at least
- one program that contains at least one instance of every one of the
- following limits:
-
- * 15 nesting levels of compound statements, iteration control
- structures, and selection control structures
-
- * 8 nesting levels of conditional inclusion
-
- * 12 pointer, array, and function declarators (in any combinations)
- modifying an arithmetic, a structure, a union, or an incomplete type
- in a declaration
-
- * 31 declarators nested by parentheses within a full declarator
-
- * 32 expressions nested by parentheses within a full expression
-
- * 31 significant initial characters in an internal identifier or a
- macro name
-
- * 6 significant initial characters in an external identifier
-
- * 511 external identifiers in one translation unit
-
- * 127 identifiers with block scope declared in one block
-
- * 1024 macro identifiers simultaneously defined in one translation unit
-
- * 31 parameters in one function definition
-
- * 31 arguments in one function call
-
- * 31 parameters in one macro definition
-
- * 31 arguments in one macro invocation
-
- * 509 characters in a logical source line
-
- * 509 characters in a character string literal or wide string literal
- (after concatenation)
-
- * 32767 bytes in an object (in a hosted environment only)
-
- * 8 nesting levels for #include'd files
-
- * 257 case labels for a switch statement (excluding those for any
- nested switch statements)
-
- * 127 members in a single structure or union
-
- * 127 enumeration constants in a single enumeration
-
- * 15 levels of nested structure or union definitions in a single
- struct-declaration-list
-
- >To
- >what extent can you directly reproduce portions of the standard in the
- >newsgroup? What is a reasonable quote and what is not?
-
- The Copyright-FAQ describes the "fair use" doctrine, but I'm afraid it
- would be a little off-topic for c.l.c :-)
-
- Someone posting from a country which hasn't signed the Berne convention
- could even post the full document :-)
-
- >I mean, if I were to
- >keep quoting K&R in responses to questions, _eventually_ someone will be able
- >to collect the entire work, which would mark me as a plagiarist. :)
-
- If you read comp.std.c for a while, you'll end up with a significant
- fraction of the standard (especially if you know the conversion rules between
- the ANSI classic numbering and the ISO one).
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-